import request from '@/utils/request'

/*------get业务类型数据--------*/
export function getMoldData(query) {
  return request({
    url: '/api/work/mold/',
    method: 'get',
    params: { ...query, page:1,limit: 999 }
  })
}


/*------add业务数据--------*/
export function addMoldData(data) {
  return request({
    url: '/api/work/mold/',
    method: 'post',
    data
  })
}

/*------edit业务数据--------*/
export function editMoldData(obj) {
  return request({
    url: '/api/work/mold/'+obj.id+'/',
    method: 'put',
    data:obj
  })
}
/*------delete角色数据--------*/
export function delMoldData(pk) {
  return request({
    url: '/api/work/mold/'+pk+'/',
    method: 'delete',
  })
}
